package top.kaoshanji.r1ch04b.helloworld;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import top.kaoshanji.r1ch04b.speaker.SpeakerBeanFactoryPostProcessor;

/**
 * 代码清单-r1ch04b-84页a：配置类（导入配置文件和定义BeanFactoryPostProcessor Bean）
 * @author kaoshanji
 * ^_^
 * create time 2025/5/28 18:32
 */
@Configuration
@PropertySource("classpath:/application.properties")
public class AutoConfiguration {

    @Bean
    public static SpeakerBeanFactoryPostProcessor speakerBeanFactoryPostProcessor() {
        return new SpeakerBeanFactoryPostProcessor();
    }

}
